package com.codeZ.StateParttern.impl;

import lombok.Data;

/**
 * 上下文
 *
 * @author codeZhang
 * @Date 2024/8/29 11:37
 */
@Data
public class Context {

    public Context(State state) {
        this.state = state;
    }

    private State state;

    public void request() {
        state.handle(this);
    }

}
